package com.example.hospitalsystem.utils;

import lombok.Data;

import java.util.List;

@Data
public class PaginationResult<T> {

    private long total;
    private int page;
    private int pageSize;
    private List<T> data;

    public PaginationResult() {

    }

    public PaginationResult(long total, int page, int pageSize, List<T> data) {
        this.total = total;
        this.page = page;
        this.pageSize = pageSize;
        this.data = data;
    }



}
